home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / forth / pfe-0.000 / pfe-0 / pfe-0.9.13 / src / config / NeXTstep / Makefile-cc < prev    next >
Encoding:
Makefile  |  1995-04-25  |  3.4 KB  |  159 lines

  1. #
  2. # Makefile ---    Makefile for Portable Forth Environment.
  3. #
  4. #        Automatically generated, if you change it next time you
  5. #        configure pfe your changes are lost. See
  6. #            src/config/your_system/
  7. #        for files to introduce permanent changes into.
  8. #
  9.  
  10.  
  11. #
  12. # default/basics.mk ---    Part of makefile for pfe, some basic variables.
  13. #
  14.  
  15. c    = .c
  16. i    = .i
  17. s    = .s
  18. o    = .o
  19. e    = 
  20.  
  21. nothing    = 
  22. eo    = -o $(nothing)
  23. oo    = -o $(nothing)
  24. d    = -D
  25. x    = /
  26.  
  27. RM    = rm -f
  28. CP    = cp -p
  29. MV    = mv
  30. MD    = mkdir -p
  31.  
  32. TRASH    = core *.core a.out *.bak *~
  33.  
  34.  
  35. #
  36. # NeXTstep/options.mk --- Part of Makefile for PFE, compiler options for NeXT
  37. #
  38.  
  39. PREFIX    = /usr/local
  40. PFELIB    = $(PREFIX)/lib/pfe
  41. PFEHLP    = $(PFELIB)/help
  42.  
  43. # cc on NeXTstep is actually a sort of gcc 2.2
  44. # Global register variables don't work with that. So if you install a newer
  45. # version of gcc you're better off.
  46. # The config script gets confused by the precompiled headers too.
  47. CC    = cc -Wall
  48. OPTIM    = -O2 -fomit-frame-pointer
  49. DEBUG    = -g -O
  50.  
  51. #CC    = gcc -Wall
  52. #OPTIM    = -O2 -fomit-frame-pointer -DUSE_REGS
  53. #DEBUG    = -g -O
  54.  
  55. CL    = $(CC)
  56. CPP    = $(CC) -E
  57.  
  58. STRIP    = -s
  59. OPTIONS    = -D_BSD# -D_NEXT_SOURCE
  60. TERM_O    = termunix$o
  61. SYS_O    = unix$o
  62. LFLAGS    =# -v
  63. LIBS    = -ltermlib -lm
  64.  
  65.  
  66. #
  67. # default/rules.mk ---    Part of Makefile for PFE, additional rules.
  68. #
  69.  
  70. .SUFFIXES:    $c $i $s $o $e
  71.  
  72. $c$s:
  73.         $(CC) $(CFLAGS) -S $<
  74.  
  75. $c$i:
  76.         $(CPP) $(CFLAGS) $< > $*.i
  77.  
  78. $c$e:
  79.         $(CC) $(CFLAGS) $< $(LDFLAGS) $(LIBS) -o $@
  80.  
  81.  
  82. #
  83. # default/depend.mk ---    Part of Makefile for PFE: dependencies.
  84. #
  85.  
  86. DEFINES =    $(d)PREFIX=$(PREFIX) $(d)PFELIB=$(PFELIB) $(d)PFEHLP=$(PFEHLP)
  87.  
  88. # if you want a final optimized version uncomment these lines:
  89. CFLAGS =    $(OPTIONS) $(OPTIM) $(DEFINES)
  90. LDFLAGS =    $(STRIP) $(LFLAGS)
  91.  
  92. # if you want a version for C-level debugging uncomment these lines:
  93. #CFLAGS =    $(OPTIONS) $(DEBUG) $(DEFINES)
  94. #LDFLAGS =    $(DEBUG) $(LFLAGS)
  95.  
  96.  
  97. # object files that should be clean ANSI-C:
  98. ANSOBJ =    core$o block$o double$o xception$o facility$o file$o \
  99.         floating$o locals$o memory$o toolkit$o search$o string$o \
  100.         forth-83$o lpf83$o misc$o showhelp$o debug$o dblsub$o \
  101.         filesub$o support$o dictnry$o vocs$o lined$o term$o
  102.  
  103. # object files containing environmental dependencies:
  104. ENVOBJ =    main$o $(TERM_O) 4ed$o signals$o sysdep$o $(SYS_O) shell$o \
  105.         yours$o
  106.  
  107. OBJECTS =    $(ANSOBJ) $(ENVOBJ)
  108.  
  109. HEADERS =    forth.h config.h virtual.h options.h const.h types.h macros.h \
  110.         support.h preload.h compiler.h dblsub.h term.h help.h lined.h
  111.  
  112.  
  113. all:        pfe$e helpidx$e showhelp$e
  114.  
  115.  
  116. pfe$e:        $(OBJECTS) version$o
  117.         $(CL) $(LDFLAGS) $(eo)pfe$e $(OBJECTS) version$o $(LIBS)
  118.  
  119. $(OBJECTS):    $(HEADERS)
  120. $(ENVOBJ):    $(HEADERS) nonansi.h
  121.  
  122. version$o:    $(OBJECTS)
  123.  
  124. clean:
  125.         $(RM) pfe$e helpidx$e showhelp$e *$o $(TRASH)
  126.  
  127. new:        clean all
  128.  
  129. veryclean:    clean
  130.         $(RM) config.h Makefile
  131.  
  132. testit:        pfe$e
  133.         ( cd ..$(x)test; .$(x)do-tests )
  134.  
  135.  
  136. # Rules for the standalone help programs:
  137.  
  138. helpidx$e:    helpidx$o helpsub$o
  139.         $(CL) $(LDFLAGS) $(eo)helpidx$e helpidx$o helpsub$o
  140.  
  141. showhelp$e:    showhlps$o helpsub$o
  142.         $(CL) $(LDFLAGS) $(eo)showhelp$e showhlps$o helpsub$o
  143.  
  144. showhlps$o:    showhelp.c $(HEADERS)
  145.         $(CC) $(CFLAGS) $(d)STANDALONE -c showhelp.c $(oo)showhlps$o
  146.  
  147. helpidx$o:    helpidx.c $(HEADERS)
  148.         $(CC) $(CFLAGS) $(d)STANDALONE -c helpidx.c $(oo)helpidx$o
  149.  
  150. helpsub$o:    helpsub.c $(HEADERS)
  151.         $(CC) $(CFLAGS) $(d)STANDALONE -c helpsub.c $(oo)helpsub$o
  152.  
  153. install:    all
  154.         if [ ! -d $(PFELIB) ]; then $(MD) $(PFELIB); fi        ;\
  155.         if [ ! -d $(PFEHLP) ]; then $(MD) $(PFEHLP); fi        ;\
  156.         $(CP) helpidx$e showhelp$e ..$(x)help$(x)*.hlp $(PFEHLP);\
  157.         cd $(PFEHLP)                        ;\
  158.         .$(x)helpidx$e -o $(PFEHLP)$(x)index *.hlp
  159.